import config from '../configs/configs'
export default {
  httpRequest(url,params,method='GET') {
    return new Promise((resolve, reject) => {
      uni.request({
        url: config.baseUrl+url,
        data: params,
        method: method,
        success: (res) => {
          resolve(res);
        },
        fail: (err) => {
          reject(err);
        },
      });
    });
  },
};
